﻿using System.Windows;

namespace SkiTracker.Converter
{
    /// <summary>
    /// Inverts true &lt;-> Visible and false &lt;-> Collapsed
    /// </summary>
    public class BooleanToVisibilityConverter : GenericBooleanConverter<Visibility>
    {
        public BooleanToVisibilityConverter()
            : base(Visibility.Visible, Visibility.Collapsed)
        {
        }
    }

    //Usage:
    //    <converter:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
    //    <converter:BooleanToVisibilityConverter x:Key="BooleanToVisibilityInverseConverter" True="Collapsed" False="Visible" />
}